#ifndef SAVELOADSETTSDIALOG_H
#define SAVELOADSETTSDIALOG_H

#include <QDialog>
class QListWidgetItem;

namespace Ui {
    class SaveLoadSettsDialog;
}

class SaveLoadSettsDialog : public QDialog {
    Q_OBJECT
public:
    SaveLoadSettsDialog(int mode, QWidget *parent = 0); // mode = 0 to loadSetts, 1 - saveSetts
    ~SaveLoadSettsDialog();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::SaveLoadSettsDialog *ui;
    int _mode;

private slots:
    void okClicked();
    void updateText(QListWidgetItem*);

signals:
    void newSettings(QString);
    void chosenSettings(QString);

};

#endif // SAVELOADSETTSDIALOG_H
